home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / setEditPaintProperties.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.4 KB  |  131 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. // Set Paint Edit Tool UI script
  18. //
  19. global proc setEditPaintProperties()
  20. {
  21.     // load the files since it does not do it automatically 
  22.     //
  23.     source "setEditPaintCallback.mel";
  24.     source "setEditPaintValues.mel";
  25.  
  26.  
  27.     setUITemplate -pushTemplate DefaultTemplate;
  28.  
  29.     string $parent =`toolPropertyWindow -q -location`;
  30.     setParent $parent;
  31.  
  32.     columnLayout -adj true setEditPaint;
  33.  
  34.         // define all the tab labels for select paint editor
  35.         //
  36.         string $section[4];
  37.         $section[0] = "SetMembership";
  38.         $section[1] = "Stroke";
  39.         // $section[2] = "Mask";
  40.         $section[2] = "Display";
  41.         $section[3] = "Misc";
  42.  
  43.         jasperProperties( "setEditPaint", "setEditPaintCtx", 
  44.                   $parent, "NONE", 4, $section 
  45.         );
  46.  
  47.     setParent ..;
  48.  
  49.     setUITemplate -popTemplate;
  50. }
  51.  
  52. global proc jasperSetEditProperties( 
  53.     string $jasperMode, 
  54.     string $currentTab,
  55.     string $currentTool
  56. )
  57. {
  58.     setParent $currentTab;
  59.  
  60.     columnLayout -w 361 -cat "both" 1 -adj true;
  61.     rowColumnLayout -nc 2 -cw 1 1  -cw 2 360;
  62.     
  63.     separator -h 10 -style "none";
  64.     separator -h 10 -style "none";
  65.     separator -h 10 -style "none";
  66.                 
  67.     // 
  68.     //    Stamp Profile frameLayout
  69.     //
  70.     jasperStampProfileProperties( $jasperMode, $currentTool );
  71.  
  72.     separator -h 10 -style "none";
  73.     separator -h 10 -style "none";
  74.     separator -h 10 -style "none";
  75.  
  76.  
  77.     //
  78.     //     Set Memebrship operation frameLayout
  79.     //
  80.        frameLayout -l "Operation" -la "center" -li 5 
  81.             -bs "etchedIn" -collapse false -collapsable false;
  82.         columnLayout;               
  83.         separator -h 10 -style "none";
  84.         radioButtonGrp -l "" -nrb 3 -cw4 10 75 80 80 
  85.             -l1 "Add " -l2 "Transfer" -l3 "Remove" 
  86.             setEditOperationRadio;
  87.         separator -h 10 -style "none";
  88.     setParent ..;
  89.     setParent ..;  
  90.  
  91.  
  92.     separator -h 10 -style "none";
  93.      separator -h 10 -style "none";
  94.     separator -h 10 -style "none";
  95.  
  96.  
  97.     //
  98.     //     Set Membership flag frameLayout
  99.     //
  100.     frameLayout -l "Set Membership" -la "center" -li 5 
  101.             -bs "etchedIn" -collapse false -collapsable false;
  102.         columnLayout;
  103.  
  104.          separator -h 10 -style "none";
  105.         rowColumnLayout -nc 2 -cw 1 5 -cw 2 300 -columnAlign 2 "left";
  106.             separator -h 5 -style "none";
  107.             text -label "Select Set To Modify";
  108.         setParent ..;
  109.  
  110.         rowColumnLayout -nc 2 -cw 1 5 -cw 2 300;
  111.             separator -h 5 -style "none";
  112.             textScrollList -w 300 -h 100 -nr 10 -ams false setEditScrollList;
  113.         setParent ..;
  114.  
  115.         separator -h 10 -style "none";
  116.  
  117.         textFieldGrp -label "Set To Modify" -w 300 -cw2 90 210
  118.             objectSetNameField; 
  119.  
  120.         separator -h 5 -style "none";
  121.         separator -h 5 -style "none";
  122.  
  123.         setParent ..;
  124.     setParent ..;
  125.  
  126.  
  127.     setParent ..;
  128.     setParent ..;
  129. }
  130.  
  131.